package com.sens;

import com.sens.alipay.AlipayHooker;
import com.sens.common.BaseHooker;
import com.sens.mybank.MybankHooker;

import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.callbacks.XC_LoadPackage;

public class DispatchHooker implements IXposedHookLoadPackage {
    private final static BaseHooker hookers[] = new BaseHooker[]{new AlipayHooker(), new MybankHooker()};

    @Override
    public final void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {
        for (BaseHooker hooker : hookers) {
            hooker.handleLoadPackage(lpparam);
        }
    }
}